package jp.co.piratealliance.pirateAllianceWeb.service.goods;

import java.util.List;
import java.util.Map;

import jp.co.piratealliance.pirateAllianceWeb.dto.com.AreaInfoDto;
import jp.co.piratealliance.pirateAllianceWeb.dto.goods.GoodsInfoDto;
import jp.co.piratealliance.pirateAllianceWeb.dto.goods.ResourceTypeInfoDto;


/**
*
* copyright   pirate alliance team 2014
* @author     lunxing
*
*/
public interface GoodsService {

	List<GoodsInfoDto> getGoodsList(int goods_type_id, String area_id, String language_id, int start_row, int end_row);

	GoodsInfoDto getGoodsByOrderId(String orderId);

	List<AreaInfoDto> getAreaListByLevel(String language_id, int level);

	List<String> getAreaIDListByName(String name);

	AreaInfoDto getAreaByAreaIDAndLanguageId(String area_id, String language_id);

	List<ResourceTypeInfoDto> getAllResourceTypeList();

	List<ResourceTypeInfoDto> getResourceTypeListByGoodsId(String goods_id);

	void insertResourceInfo(GoodsInfoDto goodsInfoForResource);

	Map<String, String> getCurrencyUnitIdMap();
	
	Map<String, String> getPayTypeMap();

	void updateResourceInfo(GoodsInfoDto goodsInfoForResource);

	//商品登録画面に、該当ユーザーの全部商品情報を検索する
	List<GoodsInfoDto> getGoodsListByUserId(String user_id);
	//画面の商品情報を登録
	String saveGoodsInfo(List<GoodsInfoDto> goodsInfoList,String userId,String selectedAreaID,String selectedResourceTypes,int payTypeId,String goodsId);
	//画面の商品情報を登録
	void updateGoodsInfo(List<GoodsInfoDto> goodsInfoList,String goodsId,String areaId,String selectedResourceTypes,int payTypeId);
	//商品登録画面に、選択した商品情報を検索する
	List<GoodsInfoDto> getGoodsListByGoodsId(String goods_id);
	List<GoodsInfoDto> getGoodsListByGoodsIdLanguageId(String goods_id,String languageId );
	//HomePage画面商品情報を検索する
	List<GoodsInfoDto> selectHomePageGoods();

	List<GoodsInfoDto> getResourceListByGoodsId(Map<String,Object> param);

	List<ResourceTypeInfoDto> getResourceListInfo(int resource_type_id);

	List<ResourceTypeInfoDto> getResourceTypeListInfo();
	
	String getGoodsResourceTypes(String goodsId);
	//不同类型商品的获取 
	List<GoodsInfoDto> getResorceGoodsListByUserId(String userid);

}
